import { createApp, App as A, h } from 'vue'
import App from './App.vue'
import Myplugin from './plugin/myplugin'
// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// import Element from "element-plus";
// import { ElButton } from "element-plus";
// import 'element-plus/dist/index.css'
// import './assets/styles/element.scss'
// import './assets/styles/index.scss'
import './assets/styles/theme-reset.scss'

// const plugin = {
//     install(app: A) {
//         app.component("pi-button", {
//             render() {
//                 return h(ElButton, 123);
//             }
//         });
//     }
// };

import router from "./router";

const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
  
app.use(Myplugin);
app.use(router);
// app.use(Element,{size:"default"});
app.mount('#app');

